From: Juanma Barranquero Date: Tue, 8 Jun 2010 16:53:11 +0000 (+0200) Subject: * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378). X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~421^2~18^2~673 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=a5df41b0033df514ea36eda825c07b24fe723439;p=emacs.git * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378). --- diff --git a/src/ChangeLog b/src/ChangeLog index 5360299f5fb..f83e458f968 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2010-06-08 Juanma Barranquero + + * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378). + 2010-06-03 Andreas Schwab * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 diff --git a/src/minibuf.c b/src/minibuf.c index ad81bfdd0b4..0a57d2a82eb 100644 --- a/src/minibuf.c +++ b/src/minibuf.c @@ -1590,7 +1590,7 @@ with a space are ignored unless STRING itself starts with a space. */) if (type == 2) { obsize = XVECTOR (collection)->size; - bucket = XVECTOR (collection)->contents[index]; + bucket = obsize ? XVECTOR (collection)->contents[index] : zero; } while (1)